﻿namespace KinonekoSoftware.Foundation
{
    public class Result
    {
        public string Reason     { get; init; }
        public bool   IsFinished { get; init; }

        public static Result Failed(string reason) => new Result
        {
            IsFinished = false,
            Reason     = reason,
        };


        public static readonly Result Success = new Result
        {
            IsFinished = true,
        };
    }
}